home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.uio.no!solace!news
- From: cmh@lls.se (Magnus Holmgren)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: detachable program
- Date: 15 Mar 1996 19:20:00
- Organization: Visage development
- Message-ID: <4ik8i9$r65@fizban.solace.mh.se>
- References: <Pine.BSD.3.91.960310002355.23759B-100000@ugly.cute.fi>
- NNTP-Posting-Host: mordred.lls.se
- Mime-Version: 1.2
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8BIT
- X-FTN-To: Kristian \
- X-Newsreader: Spot 1.3a #26/NetGate 1.2
-
- In a message of 10 Mar 96, Kristian wrote to :
-
- K\> I want to know how to make a program that detaches itself from CLI
-
- A bit tricky, but basically:
-
- Start a new process.
-
- Save and clear Cli()->cli_Module.
-
- When the started process exits, unload the segment yourself.
-
- You need some protection so that the wrong process doesn't exit first, and
- the above might not work if the program is resident.
-
- If you don't mind large archives, you can check the Term sources for an
- example. Sorry, but I don't know of a better example! ;)
-
- --
- Magnus Holmgren - Amiga programmer and enthusiast
-
-
-